using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_PhieuTraLaiCT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_PhieuTraLaiCTFields
		{
			PhieuTraLaiCT_ID,
			SoHoaDonBanLe,
			MaVach,
			TenVatTu,
			SoLo,
			DonViTinh,
			SoLuongMua,
			DonGia,
			SoLuongTraLai,
			ThanhTien,
			GhiChu
		}
		#endregion

		#region Data Members

			decimal _phieuTraLaiCT_ID;
			string _soHoaDonBanLe;
			long? _maVach;
			string _tenVatTu;
			string _soLo;
			string _donViTinh;
			int? _soLuongMua;
			double? _donGia;
			int? _soLuongTraLai;
			double? _thanhTien;
			string _ghiChu;

		#endregion

		#region Properties

		public decimal  PhieuTraLaiCT_ID
		{
			 get { return _phieuTraLaiCT_ID; }
			 set
			 {
				 if (_phieuTraLaiCT_ID != value)
				 {
					_phieuTraLaiCT_ID = value;
				 }
			 }
		}

		public string  SoHoaDonBanLe
		{
			 get { return _soHoaDonBanLe; }
			 set
			 {
				 if (_soHoaDonBanLe != value)
				 {
					_soHoaDonBanLe = value;
				 }
			 }
		}

		public long?  MaVach
		{
			 get { return _maVach; }
			 set
			 {
				 if (_maVach != value)
				 {
					_maVach = value;
				 }
			 }
		}

		public string  TenVatTu
		{
			 get { return _tenVatTu; }
			 set
			 {
				 if (_tenVatTu != value)
				 {
					_tenVatTu = value;
				 }
			 }
		}

		public string  SoLo
		{
			 get { return _soLo; }
			 set
			 {
				 if (_soLo != value)
				 {
					_soLo = value;
				 }
			 }
		}

		public string  DonViTinh
		{
			 get { return _donViTinh; }
			 set
			 {
				 if (_donViTinh != value)
				 {
					_donViTinh = value;
				 }
			 }
		}

		public int?  SoLuongMua
		{
			 get { return _soLuongMua; }
			 set
			 {
				 if (_soLuongMua != value)
				 {
					_soLuongMua = value;
				 }
			 }
		}

		public double?  DonGia
		{
			 get { return _donGia; }
			 set
			 {
				 if (_donGia != value)
				 {
					_donGia = value;
				 }
			 }
		}

		public int?  SoLuongTraLai
		{
			 get { return _soLuongTraLai; }
			 set
			 {
				 if (_soLuongTraLai != value)
				 {
					_soLuongTraLai = value;
				 }
			 }
		}

		public double?  ThanhTien
		{
			 get { return _thanhTien; }
			 set
			 {
				 if (_thanhTien != value)
				 {
					_thanhTien = value;
				 }
			 }
		}

		public string  GhiChu
		{
			 get { return _ghiChu; }
			 set
			 {
				 if (_ghiChu != value)
				 {
					_ghiChu = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("PhieuTraLaiCT_ID", "PhieuTraLaiCT_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("SoHoaDonBanLe", "SoHoaDonBanLe",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenVatTu", "TenVatTu",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("SoLo", "SoLo",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DonViTinh", "DonViTinh",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GhiChu", "GhiChu",200));
		}

		#endregion

	}
}
